package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 反馈记录
 * </p>
 *
 * @author zhoucl
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("z_suggest_record")
public class SuggestRecord extends Model<SuggestRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userid;

    /**
     * 手机号码
     */
    private String mobile;

    /**
     * 反馈内容
     */
    private String content;

    /**
     * 回复内容
     */
    private String replycontent;

    /**
     * 图片
     */
    private String imgs;

    /**
     * 反馈类型
     */
    private String type;

    /**
     * 联系电话
     */
    private String phone;
    /**
     * 所属项目
     */
    private String project;
    /**
     * 是否已回复  0：未回复，1：已回复
     */
    private Integer isreply;

    /**
     * 回复时间
     */
    private LocalDateTime replydate;

    /**
     * 反馈时间
     */
    private LocalDateTime submitdate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
